/*
 $Id: spell_internal_compare_str.c,v 1.2 2005/06/05 11:23:00 olivier Exp $
 +----------------------------------------------------------------------+
 | Copyright : mFactories 2001, 2005 
 +----------------------------------------------------------------------+
 | Projet : DataStructure
 +----------------------------------------------------------------------+
 | $Source: /cvs/DataStructure/DataStructureLib/src/spell/spell_internal_compare_str.c,v $
 | $Author: olivier $
 | $Date: 2005/06/05 11:23:00 $
 | $Revision: 1.2 $ 
 +----------------------------------------------------------------------+
 | Description :                                              
                          
 +----------------------------------------------------------------------+
 | Historique :
 $Log: spell_internal_compare_str.c,v $
 Revision 1.2  2005/06/05 11:23:00  olivier
 - Correction pour gcc

 Revision 1.1  2005/05/20 22:33:45  olivier
 Explosion des sources : 1 fichier = 1 fonction


 +----------------------------------------------------------------------+
*/

/**
 * Inclusions standards
 */
#include <ukapi.h>

int spell_internal_compare_str( const pointer_t str1, const pointer_t str2 ) 
{
	int	resultat = 0;

	if ( ( resultat = strcmp( (const char *) str1, (const char *) str2 ) ) > 0 )
	{
		return 1;
	}
	else if ( resultat < 0 )
	{
		return -1;
	}
	else
	{
		return 0;
	}
}
